<<<<<<< .mine

function BoolCircle(x,y,value,changeAble,path){
    this.x = x;
    this.y = y;
    this.value = value;
    this.changeAble = changeAble;
    const RADIUS = 30;
    Sprite.apply(this);
    this.buttonMode = changeAble;
    this.mouseChildren = false;        
    // tu vytvorum carny
    var blackCircle = new Sprite();

    var blackBitmap = Game._game.bitmaps[path+"blackCircle.png"];
    blackCircle.x = x - RADIUS;
    blackCircle.y = y - RADIUS;
    blackCircle.addChild(blackBitmap);
  
    // tu vytvorim biely
    var whiteCircle = new Sprite();
   
    var whiteBitmap = Game._game.bitmaps[path+"whiteCircle.png"];
    whiteCircle.x = x - RADIUS;
    whiteCircle.y = y - RADIUS;
    whiteCircle.addChild(whiteBitmap);
    /*
    whiteCircle.graphics.beginFill(white);
    whiteCircle.graphics.drawCircle(x, y, RADIUS);
    */            
    // oba pridam, teda su oba viditelne resp. ten posledne pridany
    this.addChild(blackCircle);
    this.addChild(whiteCircle);
                
    // nastavim viditelnost podla value
    blackCircle.alpha = !value;
    whiteCircle.alpha = value;
                
    // zmenim value a vykreslim
    this.changeBool = changeBool;
    function changeBool(e){
        if(changeAble){
            e.target.value = !e.target.value;
            
            blackCircle.alpha = !e.target.value;
            whiteCircle.alpha = e.target.value;
        } 
        
        if(e.target.parent.isSolved()){
            e.target.parent.levelSolved();
        }else{
          //alert("not solved!");
        } 
                      
    }
  
    // pridam click event na tento ony
    this.addEventListener(MouseEvent.CLICK,this.changeBool);
}
BoolCircle.prototype = new Sprite();=======

function BoolCircle(x,y,value,changeAble){
    this.x = x;
    this.y = y;
    this.value = value;
    this.changeAble = changeAble;
    const RADIUS = 30;
    Sprite.apply(this);
    this.buttonMode = changeAble;
    this.mouseChildren = false;        
    // tu vytvorum carny
    var blackCircle = new Sprite();

    var blackBitmap = new Bitmap(new BitmapData("pictures/blackCircle.png"));
    blackCircle.x = x - RADIUS;
    blackCircle.y = y - RADIUS;
    blackCircle.addChild(blackBitmap);
  
  /*
    blackCircle.graphics.beginFill(black);
    blackCircle.graphics.drawCircle(x, y, RADIUS);
    */            
    // tu vytvorim biely
    var whiteCircle = new Sprite();
   
    var whiteBitmap = new Bitmap(new BitmapData("pictures/whiteCircle.png"));
    whiteCircle.x = x - RADIUS;
    whiteCircle.y = y - RADIUS;
    whiteCircle.addChild(whiteBitmap);
    /*
    whiteCircle.graphics.beginFill(white);
    whiteCircle.graphics.drawCircle(x, y, RADIUS);
    */            
    // oba pridam, teda su oba viditelne resp. ten posledne pridany
    this.addChild(blackCircle);
    this.addChild(whiteCircle);
                
    // nastavim viditelnost podla value
    blackCircle.alpha = !value;
    whiteCircle.alpha = value;
                
    // zmenim value a vykreslim
    this.changeBool = changeBool;
    function changeBool(e){
        if(changeAble){
            e.target.value = !e.target.value;
            
            blackCircle.alpha = !e.target.value;
            whiteCircle.alpha = e.target.value;
        }                
    }
    // pridam click event na tento ony
    this.addEventListener(MouseEvent.CLICK,this.changeBool);
}
BoolCircle.prototype = new Sprite();>>>>>>> .r36
